package com.lqfan.autoAnswerQ.model.notebook;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("myNote")
public class myNote extends Model<myNote> {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    private String id;

    @TableField("userId")
    private String userId;

    @TableField("subjectId")
    private String subjectId;

    @TableField("noteContent")
    private String noteContent;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }


    @Override
    public String toString() {
        return "Notebook{" +
                "id='" + id + '\'' +
                ", userId='" + userId + '\'' +
                ", subjectId='" + subjectId + '\'' +
                ", noteContent='" + noteContent + '\'' +
                '}';
    }
}
